<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:body>

   	<ui:composition template="/pages/layout.xhtml">
   		
   		<ui:define name="cssPagina">
   			<link href="#{request.contextPath}/css/professor.css" media="screen" rel="stylesheet" type="text/css" />
   		</ui:define>
   		
   		<ui:define name="content">
   		
	   		<p:panel header="Visualizar Professores" styleClass="div-content">
				<h:panelGrid>
					<p:dataTable id="professorDataTable" 
						value="#{visualizarProfessorBean.getProfessorList()}" var="professor"
						paginator="true" rows="10"
						paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
						rowsPerPageTemplate="5,10,15"
						emptyMessage="Nenhum registro encontrado!"
						paginatorPosition="bottom">
					    <p:column headerText="SIAPE" styleClass="header-siape">
					    <f:facet name="header">
					        	<h:outputText value="SIAPE" />
				        </f:facet>
					        <h:outputText value="#{professor.siape}" />
					    </p:column>
					 
					    <p:column headerText="Nome">
					        <f:facet name="header">
					        	<h:outputText value="Nome" />
				        </f:facet>
					        <h:outputText value="#{professor.nome}" />
					    </p:column>
					 
					   
					</p:dataTable>
		        </h:panelGrid>
	    	</p:panel>
			
   		</ui:define>
   	
   	</ui:composition>	
   	
</h:body>
</html>